package sta04;

public class test {
    public static void main(String[] args) {
        //创建对象并调用方法
        Animal dog = new Dog(2, "黑色");
        Person person1 = new Person("小明", 18);
        person1.keepPet(dog, "骨头");

        Person person2 = new Person("小红", 20);
        Animal cat = new Cat(3, "白色");
        person2.keepPet(cat, "鱼");

    }
}
